/**
 *  Copyright(C) 2012-2013 Suntec(Shanghai) Software Co., Ltd.
 *  All Right Reserved.
 */
package com.cugbmao.luence;

/**
 * Descriptions
 * 
 * @version 2013年5月21日
 * @author Suntec
 * @since JDK1.6
 * 
 */
public class InfoItem {
	private int fileID;// 文件编号
	private int offset;// 文件偏移
	private InfoItem next;// 后续节点指针

	public InfoItem() {
		this.fileID = 0;
		this.offset = 0;
		this.next = null;
	}

	public InfoItem( int fileID, int offset ) {
		this.fileID = fileID;
		this.offset = offset;
		this.next = null;
	}

	public InfoItem( int fileID, int offset, InfoItem next ) {
		this.fileID = fileID;
		this.offset = offset;
		this.next = next;
	}

	/**
	 * @return the fileID
	 */
	public int getFileID() {
		return fileID;
	}

	/**
	 * @param fileID
	 *            the fileID to set
	 */
	public void setFileID( int fileID ) {
		this.fileID = fileID;
	}

	/**
	 * @return the offset
	 */
	public int getOffset() {
		return offset;
	}

	/**
	 * @param offset
	 *            the offset to set
	 */
	public void setOffset( int offset ) {
		this.offset = offset;
	}

	/**
	 * @return the next
	 */
	public InfoItem getNext() {
		return next;
	}

	/**
	 * @param next
	 *            the next to set
	 */
	public void setNext( InfoItem next ) {
		this.next = next;
	}

}
